package com.team.app.dao;

import java.util.List;

import com.team.app.model.Auth;

public interface  AuthDao {
	public Long create(Auth obj);

	public void edit(Auth obj);

	public void remove(Auth obj);

	public Auth find(Object id);
	
	public Auth find(String accuntName);

	public List<Auth> findAll();	
	
	public List<Auth> findAll(Long parentId,Long roleId,String accountName,Long active);
	
	public List<Auth> findByCompanyAll(Long companyId);
	public List<Auth> findByCompanyAll(Long parentId,Long companyId);

	public List<Auth> findRange(int[] range);

	public Long count();
	
	public Auth checkLogin(String accuntName,String password);
}
